<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset=utf-8>
            <title>ERP</title>    
            <link rel="stylesheet" type="text/css" media="screen,projection" href="/style/bootstrap/css/bootstrap.css">
            <link rel="stylesheet" type="text/css" media="screen,projection" href="/style/perso.css">
        </meta>
    </head>
    <body>
<?php
    $menu = array();
    $menu[] = array('lien' => "tableau-de-bord", 'libelle' => "Tableau de bord");
    $menu[] = array('lien' => "production", 'libelle' => "Production");
    $menu[] = array('lien' => "parametres", 'libelle' => "Paramètres entreprise");
    $menu[] = array('lien' => "matiere-premiere", 'libelle' => "Gestion des matières premières");
    $menu[] = array('lien' => "contrats", 'libelle' => "Contrats");
    $menu[] = array('lien' => "commandes", 'libelle' => "Commandes");
    $menu[] = array('lien' => "?augmentation", 'libelle' => "+10%");
?>
<div class="container">
    <div class="row">
        <ul class="nav nav-tabs">
            <?php
            foreach ($menu as $m)
            {
                $lien = $m['lien'];
                $libelle = $m['libelle'];
                
                $class = '';
                if(stristr($GLOBALS['page'], $lien) or (isset($_GET['augmentation']) and stristr("?augmentation", $lien)))
                {
                    $class = ' class="active"';
                }
                
                echo '<li'.$class.'><a href="'.$lien.'" >'.$libelle.'</a></li>';
            }
            ?>
        </ul>
    </div>
</div>